{extend name="default/base/base_home" /}
{block name="mall_main"}

<div class="common-banner">
    {dstaglib:adv ap_id='2' limit='1' item='v'}
    <img src="{:get_adv_img($v.adv_code)}">
    {/dstaglib:adv}
</div>

<div class="common-nav">
    <ul>
        <li><a href="{:url('product/search')}">首页</a></li>
        {foreach name="product_column" item="column"}
        <li>
            <a href="{:url('product/search',['id'=>$column.column_id])}">{$column.column_name}</a>
        </li>
        {/foreach}
    </ul>
</div>

<div class="common-list-1">
    <ul>
        {empty name="product_list"}
        没有数据
        {else /}
        {foreach name="product_list" item="product"}
        <li>
            <div class="p-img">
                <a href="{:url('product/detail',['product_id'=>$product.product_id])}">
                    <img src="{:get_product_img($product.product_imgurl)}"/>
                </a>
            </div>
            <div class="p-info">
                <p>{$product.product_title}</p>
            </div>
        </li>
        {/foreach}
        {/empty}
    </ul>
</div>
{$page}
{/block}